from django import forms
from django.forms import Textarea

from .models import Comment

class CommentForm(forms.ModelForm):
    class Meta:
        model = Comment
        fields = ('content',)
        widgets = {'content': Textarea(attrs={'placeholder': '留下你的评论', 'rows': '3'})}
        labels = {'content': ''}  # 不需要显示"内容"标签
